﻿#include "TestThread.h"
#include "qtimer.h"
#include "widget.h"

#include <QApplication>
#include "handler/QBreakpadHandler.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QCoreApplication::setApplicationName("AppName");
    QCoreApplication::setApplicationVersion("1.0");
    QCoreApplication::setOrganizationName("OrgName");
    QCoreApplication::setOrganizationDomain("name.org");


    // Set directory to store dumps and url to upload
    QBreakpadInstance.setDumpPath("crashes");


//正常
    srand(1000);
    TestThread t1(false, rand());
    TestThread t2(true, rand());

    t1.start();
    t2.start();

    QTimer::singleShot(3000, qApp, SLOT(quit()));

    Widget w;
    w.show();
    return a.exec();
}
